package com.gitee.mazhenggg.demo.rpc.beans;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpMethod;
import reactor.core.publisher.Mono;

import java.io.Serializable;
import java.util.Map;

/**
 * @author mazhenggg
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MethodMetadata implements Serializable {

	private String url;
	private HttpMethod method;
	private Map<String, Object> params;
	private Mono body;
	private Class<?> bodyElementType;
	private boolean returnFlux;
	private Class<?> returnElementType;

}
